/**
 * 
 */
package com.module.osr.stormbringer.bus;

/**
 * @author Donald
 */
public final class Jewel {
	/** the amount of carets the jewel weighs. */
	private int		caret;
	/** the factor applied to the jewel's value for a flaw. */
	private float	flaw	= 1f;
	/** the type of jewel. */
	private int		type;
	/**
	 * Creates a new instance of {@link Jewel}.
	 * @param c
	 * @param f
	 * @param t
	 */
	public Jewel(final int c, final float f, final int t) {
		super();
		caret = c;
		flaw = f;
		type = t;
	}
	/**
	 * Creates a new instance of {@link Jewel}.
	 */
	public Jewel() { }
	/**
	 * Creates a new instance of {@link Jewel}.
	 * @param c
	 * @param t
	 */
	public Jewel(final int c, final int t) {
		this(c, 1f, t);
	}
	/**
	 * Gets the amount of carets the jewel weighs.
	 * @return <code>int</code>
	 */
	public int getCaret() {
		return caret;
	}
	/**
	 * Gets the factor applied to the jewel's value for a flaw.
	 * @return <code>float</code>
	 */
	public float getFlaw() {
		return flaw;
	}
	/**
	 * Gets the type of jewel.
	 * @return <code>int</code>
	 */
	public int getType() {
		return type;
	}
	/**
	 * Sets the amount of carets the jewel weighs.
	 * @param val the caret to set
	 */
	public void setCaret(final int val) {
		caret = val;
	}
	/**
	 * Sets the factor applied to the jewel's value for a flaw.
	 * @param val the flaw to set
	 */
	public void setFlaw(final float val) {
		flaw = val;
	}
	/**
	 * Sets the type of jewel.
	 * @param val the type to set
	 */
	public void setType(final int val) {
		type = val;
	}
}
